#include<bits/stdc++.h>
using namespace std;

string mul(string&s1,string&s2)
{
    
    string ret;
    reverse(s1.begin(),s1.end());
    reverse(s2.begin(),s2.end());
    int sz1=s1.size();
    int sz2=s2.size();
    vector<int> ans(sz1+sz2);
    for(int i=0;i<sz1;i++)
    {
        int tem1=s1[i]-'0';
        for(int j=0;j<sz2;j++)
        {
            int tem2=s2[j]-'0';
            ans[i+j]+=tem1*tem2;
        }
    }
    int count=0;
    for(int i=0;i<ans.size();i++)
    {
        count+=ans[i];
        ret.push_back(count%10+'0');
        count/=10;
    }
    while(ret.size()>1&&ret[ret.size()-1]=='0') ret.pop_back();
    reverse(ret.begin(),ret.end());
    return ret;
}

int main()
{
    string s1,s2;
    cin>>s1>>s2;
    cout<<mul(s1,s2);
    return 0;
}